package com.jerry.hm.algorithm.recursion;

/**
 * 兔子问题
 *
 * @author Jerry
 * @since 2024/10/1 15:11
 */
public class Rabbit {

    public static int fun(int month) {
        if (month == 1 || month == 2) {
            return 2;
        }
        return fun(month - 1) + fun(month - 2);
    }
}
